#ifndef		_THREADUNIX_H_
#define		_THREADUNIX_H_

#include                        <iostream>
#include                        <string>

# include                       <pthread.h>
typedef void*                   (*Routine)(void*);
typedef pthread_t               MyHandle;
typedef void*                   ThreadReturn;

class		ThreadUnix
{
public:
  ThreadUnix() : _handle(0){};
  virtual ~ThreadUnix(){};
  virtual bool	start(Routine root, void *arg);
  virtual void	Join();
  virtual void	Exit();
private:
  MyHandle*	_handle;
};

#endif		/* _THREADUNIX_H_ */
